/*
** 1455.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Thu Sep 25 13:00:10 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/* #include "1455.h" */
#include <stdio.h>

int main()
{
     int instance, men;

     scanf("%d", &instance);
     while(instance){
	  scanf("%d", &men);
	  if (men % 1)		/* odd or even */
	       printf("%d\n",	/* odd */
		      (men/2) * (men/2));
	  else			/* even */
	       printf("%d\n", men*men/4 - men/2);
	  instance--;
     }
     return 0;
}

